<html>
    <head>
        <script language="javascript" type="text/javascript" src="graph_data.RTSI-15.small.js"></script>
        <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.pack.js"></script><![endif]-->
        <script language="javascript" type="text/javascript" src="canvas_candle_chart.js"></script>
    </head>
    <body>
        <script type="text/javascript">
            var __config = config;
            var __misc = misc;
            var __seegeCandleChart = seegeCandleChart;
            var __global = global;
            function my_plot()
            {
                var _config = __config;
                var _misc = __misc;
                var _seegeCandleChart = __seegeCandleChart;
                var _global = __global;

                document.write('<html>');
                document.write('<head>');
                document.write('<meta http-equiv="Refresh" content="6000"/>');
                document.write('</head>');
                document.write('<body>');
                document.write('<h2>' + (new Date).toLocaleString() + '<h2>');

                var j = 0;
                for (var i = 0; i < _global.length; ++i) {
                    var defs = _config.constructChartStyle(_global[i]);
                    //var defs = _config.constructChartStyle(_global[i], 'nano');
                    //var defs = _config.constructChartStyle(_global[i], 'micro');
                    //var defs = _config.constructChartStyle(_global[i], 'long');
                    //var defs = _config.constructChartStyle(_global[i], 'median');
                    //var defs = _config.constructChartStyle(_global[i], 'large');
                    //var defs = _config.constructChartStyle(_global[i], 'detailed');
                    for (var k = 0; k < Math.floor((defs[0] - 1)/defs[1]) + 1; ++k, ++j) {
                        document.write('<div id="myCanvas' + j + '" style="position:relative; width:730px; height:355px; top:0px; left:0px"></div><div style="position:relative; width:730px; height:15px;"></div>');
                        var cnv = document.getElementById("myCanvas" + j);
                        var cur_graph = new _seegeCandleChart(cnv, k, _global[i], defs[2], _misc, _config);
                    }
                }
                document.write('</body>');
                document.write('</html>');
            }
            window.onload = my_plot;
        </script>
    </body>
</html>

